import request from '@/utils/request'

// 查询账号信息列表
export function listSysLog(query) {
  return request({
    url: '/sysLog/list',
    method: 'get',
    params: query
  })
}

export function listAllSysLog(query) {
  return request({
    url: '/sysLog/list/all',
    method: 'get',
    params: query
  })
}

// 查询账号信息详细
export function getSysLog(id) {
  return request({
    url: '/sysLog/' + id,
    method: 'get'
  })
}

// 新增账号信息
export function addSysLog(data) {
  return request({
    url: '/sysLog',
    method: 'post',
    data: data
  })
}

// 修改账号信息
export function updateSysLog(data) {
  return request({
    url: '/sysLog',
    method: 'put',
    data: data
  })
}

// 删除账号信息
export function delSysLog(id) {
  return request({
    url: '/sysLog/' + id,
    method: 'delete'
  })
}
